from flask import Flask, request
import binascii

app = Flask(__name__)


@app.route('/data', methods=['POST'])
def data():
    print(binascii.hexlify(request.data))
    return 'Data received!'


if __name__ == '__main__':
    app.run('192.168.124.2', 28080)
